﻿@{
    var page = ViewContext.RouteData.Values["page"].ToString();

    var links = new[]
    {
new{ name="个人信息",page="/User/Setting/Information"},
new{ name="修改密码",page="/User/Setting/ChangePwd"},
new{ name="更换头像",page="/User/Setting/ChangeAvatar"},
new{ name="绑定帐号",page="/User/Setting/BindAccount"},
new{ name="签到记录",page="/User/MySignIn"},
};
}

<!DOCTYPE html>
<html>
<head>
    @Html.Partial("/Pages/Shared/_CommonHead.cshtml")
    @Html.Partial("/Pages/Shared/_CommonStyles.cshtml")
    <meta name="viewport" content="width=device-width" />
    @RenderSection("styles", false)
</head>
<body>
    @Html.Partial("/Pages/Shared/_Header.cshtml")
    @Html.AntiForgeryToken()
    <div class="container">
        <div class="row">
            <div class="col-12 mb-3">
                <h2>@User.Identity.UserName()的设置</h2>
                <hr />
            </div>
            <div class="col-2">
                <div class="nav flex-column nav-pills">
                    @foreach (var item in links)
                    {
                        <a class="nav-link @if (item.page == page)
                        { <text>active</text>} " asp-page="@item.page">@item.name</a>
                    }
                </div>
            </div>
            <div class="col-10">
                <h4>@ViewBag.Title</h4>
                <hr />
                @RenderBody()
            </div>
        </div>
    </div>
    @Html.Partial("/Pages/Shared/_Footer.cshtml")
    @Html.Partial("/Pages/Shared/_CommonScripts.cshtml")
    @Html.Partial("/Pages/Shared/_ValidationScripts.cshtml")
    @RenderSection("scripts", false)
    @await Component.InvokeAsync("PointMessage")
    @Html.Partial("/Pages/Shared/_CommonTool.cshtml")
</body>
</html>

